<select id="uid" name="uid" class="input input-auto">
	<option value="0">请选择</option>
</select>
<script id="uid_list_tpl" type="text/html">
	{{# for(var i = 0, len = d.data.length; i < len; i++){ }}
		<option {{# if(d.data[i].id==uid){}}selected{{#}}} value="{{ d.data[i].id }}">{{ d.data[i].name }}</option>
	{{# } }}
</script>
<script>
	var func = false;
	$('select').click(function(){
		func = true;
	});
	function start_seller(){
        $.getJSON('__URL__/get_seller', {}, function(res){
            if(res.data.length > 0 ){
                var tpl = $("#uid_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#uid").html('<option value="0">请选择</option>'+render);
                });
            }
        });
	}
    start_seller();
	$('[name=uid]').change(function(){
		uid = $(this).val();
		if(func == true){
			select_uid();
		}
	});
</script>